package com.example.houtai.mapper;

import com.example.houtai.entity.SysUser;
import com.example.houtai.entity.TbToken;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 龚梦
 * @since 2021-03-26
 */
public interface TbTokenMapper extends BaseMapper<TbToken> {


    @Select("select * from tb_token where user_id=#{userId}")
    TbToken SelectTokenByUid(@Param("userId") Long userId);
}
